package org.huntaway.kernel.mode.mediator;

import org.huntaway.kernel.mode.mediator.imp.Anchor;
import org.huntaway.kernel.mode.mediator.imp.Guest;
import org.huntaway.kernel.mode.mediator.imp.Mediator;

/**
 * @author jskyme
 *	Example 1
 *	[Mediator Anchor Guest]
 */
public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Mediator med = new Mediator();
		Anchor anchor = new Anchor(med);
		Guest guest = new Guest(med);
		med.regAnchor(anchor);
		med.regGuest(guest);
		
		anchor.speak();
		guest.speak();
		anchor.stop();
		guest.speak();
		anchor.speak();
	}

}
